/*
 * @ author madman 
 * @ use 购买号码
 */
// const NumbersModel = require('../../models/nexmo/numbers.model');
const Utils = require('../utils');
const nexmo = require('../utils/nexmo');
const CountryModel = require('../../models/nexmo/country.model');
class Country {
    //获取国家列表
    async list(ctx) {
     var list = await CountryModel.find({})
     if (list)  {
      return ctx.success({ data: list });
     } else {
      return ctx.error({ msg: '获取不到数据' });
     } 
    }
}

export default new Country;